The TextField Component > FTextField.getEnabled() |
FTextField.getEnabled()
Availability
Flash Player 6.
Usage
myTextField_txf.getEnabled()
Parameters
none
Returns
Returns a Boolean value indicating whether the component is enabled (true) or not (false).
Description
Returns a Boolean value indicating whether the component is enabled (true) or not (false). When the component is not enabled, it will not respond to user interaction. Its visual state will also be grayed-out to indicate its status.
Example
The following code enables the component. And then traces if it is enabled or not.
myTextField_txf.setEnabled(true);
trace(myTextField_txf.getEnabled()); //true
See also